<?php
/**
 * 机器人配置
 */
return [
    'default' =>  [],
    'qq'    =>  [
        'host'  =>  '127.0.0.1:5700',
        'token' =>  'token',
        'ip_whitelist' => ['127.0.0.1','192.168.3.1'],
        // 延迟回调接口
        'callback' => 'http://movie.iyuu.cn/index/Bot/index',
        // 消息发送开关
        'enabled'    =>  [
            'group'     =>  false,
            'private'   =>  true,
        ],
        'bot'   =>  0,
        'master'=>  367013672,
        'allowFriends'  =>  true,
        'allowGroups'   =>  true,
        'debug'         =>  false,
        // 中间件配置
        'middleware'    =>  [
            'bot' => [
                IYUU\sdk\CoolQ\MiddleWare\RedisQueueCallback::class,
                IYUU\sdk\CoolQ\MiddleWare\DbInsert::class,
                IYUU\sdk\CoolQ\MiddleWare\EventListen::class
            ]
        ],
        // 消息订阅事件配置
        'receiver'      => [
            // 提供者已支持的事件
            'eventsProvider' => [
                IYUU\sdk\CoolQ\Event\Message::class,
                IYUU\sdk\CoolQ\Event\Notice::class,
                IYUU\sdk\CoolQ\Event\Request::class
            ],
            // 需要监听事件的模块
            'moduleListener' => [
                IYUU\sdk\CoolQ\Modules\system\receiver::class
            ],
        ],
        'repetition'    =>  [
            // 禁止复读的群
            'forbid' =>  [
                'message_exclude' =>  [],
                'message_ttl'   =>  60,
                'message_count' =>  3,
                'ban_duration'  => 1,     // 禁言时长 (单位：分钟)
                'group_id'      =>  []
            ],
            // 允许复读的群
            'allow' =>  [
                'message_exclude' =>  ['签到','打卡'],
                'message_ttl'   =>  120,
                'message_count' =>  5,
                'group_id'      =>  []
            ],
        ],
        'reply' =>  [
            'welcomeMsg'     =>  '感谢您添加 小薇 为好友！',
            'group_increase' => '欢迎新朋友加入，请先阅读群公告！'.PHP_EOL .'疑难问题群内无法解决时，可以私聊群主。'.PHP_EOL.'一起愉快的聊天吧！需要IYUUPlus安装方法，请发送：帮助、help',
            'group_decrease' => [
                'kick'  =>  '{user_id} 各奔东西，江湖有缘再见！',
                'kick_me' => '{user_id} 被踢出群：{group_id}，操作者：{operator_id}',
            ],
        ],
        'checkin' => [
            'shop' => PHP_EOL . '[CQ:face,id=14]积分的作用：免除禁言、群专属头衔等，有趣功能等着你~',
            'tips' => PHP_EOL . '[CQ:face,id=14]每天第一次发言，会自动触发打卡送积分，您无需发送专门的命令来做这件事。[CQ:face,id=99]',
        ],
        // 腾讯云
        'TencentCloud' => [
            'SecretId' => '',
            'SecretKey' => '',
        ],
    ],
];
